Mock Roles, not Objects

نویسندگان

  • Steve Freeman
  • Nat Pryce
  • Tim Mackinnon
  • Joe Walnes
چکیده

Mock Objects is an extension to Test-Driven Development that supports good Object-Oriented design by guiding the discovery of a coherent system of types within a code base. It turns out to be less interesting as a technique for isolating tests from third-party libraries than is widely thought. This paper describes the process of using Mock Objects with an extended example and reports best and worst practices gained from experience of applying the process. It also introduces jMock, a Java framework that embodies our collective experience.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Endo-Testing: Unit Testing with Mock Objects

Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. They allow unit tests to be written for everything, simplify test structure, and av...

متن کامل

Mock modular forms and geometric theta functions for indefinite quadratic forms

Mock modular forms are central objects in the recent discoveries of new instances of Moonshine. In this paper, we discuss the construction of mixed mock modular forms via integrals of theta series associated to indefinite quadratic forms. In particular, in this geometric setting, we realize Zwegers’ mock theta functions of type ( p, 1) as line integrals in hyperbolic p-space.

متن کامل

On Attributes of Objects in Object-Oriented Software Analysis

One of the modern paradigms to develop a system is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles. There is a sequence of activities to develop an analysis model. In the first step, we work in developing an initial use case model. Then in the second step, they identify a number of concepts and build a glossary of partic...

متن کامل

Bailey Pairs With Free Parameters, Mock Theta Functions and Tubular Partitions

This study began in an effort to find a simpler derivation of the Bailey pairs associated with the seventh order mock theta functions. It is shown that the introduction of a new parameter independent of both a and q leads to a much simpler treatment. It is noted that a previous treatment of the central fifth order mock theta function inadvertently uses this approach. The paper concludes by appl...

متن کامل

Java Test Driver Generation from Object-Oriented Interaction Traces

In the context of test-driven development for object-oriented programs, mock objects are increasingly used for unit testing. Several Java mock object frameworks exist, which all have in common that mock objects, realizing the test environment, are directly specified at the Java program level. Though using directly the programming language may facilitate acceptance by software developers at firs...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004